import numpy as np

# delete
a=np.arange(12).reshape(3,4)
print(np.delete(a,2,1))
print(np.delete(a,2,0))
# insert
b=np.arange(4)
print(np.insert(a,2,b,0))
# append
a.resize(2,6)
c=np.arange(3)
d=np.append(a,c)
print(d)
# turnover
print(a)
print(np.fliplr(a))
print(np.flipud(a))
